package com.sky.service;

import com.sky.dto.EmployeeDTO;
import com.sky.dto.EmployeeLoginDTO;
import com.sky.dto.EmployeePageQueryDTO;
import com.sky.dto.PasswordEditDTO;
import com.sky.entity.Employee;
import com.sky.result.PageResult;

public interface EmployeeService {

    /**
     * 员工登录
     *
     * @param employeeLoginDTO
     * @return
     */
    Employee login(EmployeeLoginDTO employeeLoginDTO);

    /**
     * 新增员工
     *
     * @param employeeDTO
     */
    void createEmployee(EmployeeDTO employeeDTO);

    /**
     * 员工列表分页模糊查询
     *
     * @param employeePageQueryDTO
     * @return
     */
    PageResult page(EmployeePageQueryDTO employeePageQueryDTO);

    /**
     * 启用或禁用员工
     *
     * @param status
     * @param id
     */
    void pickOrBan(Integer status, Long id);

    /**
     * 员工修改密码
     *
     * @param passwordEditDTO
     */
    void editPassword(PasswordEditDTO passwordEditDTO);

    /**
     * 根据员工id获取员工信息
     *
     * @param id
     * @return
     */
    Employee getEmployeeById(Long id);

    /**
     * 根据员工id修改员工信息
     *
     * @param employeeDTO
     */
    void updateEmployee(EmployeeDTO employeeDTO);

}
